package com.shop.coupon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.common.core.domain.PageResult;
import com.shop.common.core.domain.Result;
import com.shop.coupon.domain.Coupon;
import com.shop.coupon.domain.vo.CouponHistoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponService extends IService<Coupon> {
    Result<PageResult<Coupon>> couponShow(Integer pageNum ,  Integer pageSize);

    Result<Coupon> couponInsert(Coupon coupon);

    Result<Coupon> couponUpdate(Coupon coupon);

    Result<Coupon> couponDelete(Long id);

    Result<Coupon> getCoupon(Long id);

    Result<Coupon> couponUpdPublish(Long id);

    Result<Coupon> couponUpdStop(Long id);

    Result<Coupon> getSelectCoupon();

    List<CouponHistoryVo> getCouponByUserId();
}
